package com.fyt.reachgo.utils;


public interface Lock {

    /**
     * 尝试获取锁
     * @param timeoutSec
     * @return true：获取锁成功，false：获取锁失败
     */
    public boolean lock(Long timeoutSec);

    /**
     * 释放锁
     */
    public void unlock();
}
